import React from 'react';
import ReactDom from 'react-dom';
import {Button,Menu,Modal,Icon,Tabs,message,Form,Input,CheckBox,Carousel} from 'antd';
import 'antd/dist/antd.css';
const FormItem = Form.Item;
const SubMenu = Menu.SubMenu;
const TabPane = Tabs.TabPane;
const MenuItemGroup = Menu.MenuItemGroup;
import { Row,Col } from 'antd';
import {Router, Route, Link, browserHistory} from 'react-router';

export default class Article extends React.Component{
	constructor(){
		super();
		this.state={
		   // test:''
		}
	};
	testFunc(){
		var myFetchOptions ={
			method:'GET'
		};
		fetch("/insert?title=11&author=zq&type=22&text=33&time=2017-01-03", myFetchOptions)
		.then(response => {
			alert(response);
		});
	}
	render(){
		return (
			<div>
				<Row>
					<Col span={2}></Col>
					<Col span={20} class="content">
						<Carousel autoplay>
						    <div><div class="over"></div><img src="./images/timg.jpg"/></div>
						    <div><div class="over"></div><h3>2</h3></div>
						    <div><div class="over"></div><h3>3</h3></div>
						    <div><div class="over"></div><h3>4</h3></div>
                        </Carousel>
					</Col>
					<Col span={2}></Col>
				</Row>
			</div>
		);
	}
}